/*
 * @Author: your name
 * @Date: 2022-03-29 22:18:41
 * @LastEditTime: 2022-04-29 16:35:25
 * @LastEditors: Please set LastEditors
 * @Description: 分类接口对象
 * @FilePath: \blog-api\src\abstract\dto\create-post.dot.ts
 */

import { ApiProperty } from '@nestjs/swagger';

// 添加访问人入口参数
export class addVisitLogPostDto {
    @ApiProperty({ description: '访问方式' })
    readonly visit_mode: string;
    @ApiProperty({ description: '访问浏览器' })
    readonly visit_browser: string;
    @ApiProperty({ description: '访问IP' })
    readonly visit_ip: string;
}

// 获取列表入口参数
export class visitLogPostDto {
    @ApiProperty({ description: '页码' })
    readonly page: number;
    @ApiProperty({ description: '每页数量' })
    readonly page_count: number;
}

// 返回参数
export class visitLogDto{
    visit_mode?: string;
    visit_browser?: string;
    visit_ip?: string;
}